﻿namespace cndp.Model.IModel
{
    public interface IContest
    {
        void AddEvent(int id, string gender, string bracket, double jumpHeight, int rounds, int maxDivers,
            int maxJudges, string startTime,
            string finishTime, bool couple);

        bool EventlistIsEmpty();
        void DeleteEvent(int id);
        Event FindEventInList(int id);
        bool EditEvent(Event e);
        bool Equals(object obj);
        bool Equals(Contest other);
        int CompareTo(Contest other);
        void SaveContestToXmlFile(string fileName);
        void AddDiverToRegister(string name, string gender, string personalcodenumber, string nationality, string club);
        void AddJudgeToRegister(string name, string gender, string personalcodenumber, string nationality, string affilliate);
        void AddDiverToEvent(string pnum, int eventId);
        void AddJudgeToEvent(string pnum, int eventId);
        Diver FindDiverInRegister(string pnum);
        Judge FindJudgeInRegister(string pnum);
        void SortEventList();
        int GetNumberOfDivers();
        int GetNumberOfJudges();
    }
}